const db = require("../../middleware/db");
const Sequelize = require("sequelize");
// 表单表
module.exports = sys_form = db.define("sys_form", {
  // 表单名称
  name: {
    type: Sequelize.STRING(100),
    allowNull: false,
    defaultValue: "",
  },
  // 模型id
  model_id: {
    type: Sequelize.INTEGER(11).UNSIGNED,
    allowNull: true,
    defaultValue: 0,
  },
  menu_id: {
    type: Sequelize.INTEGER(11).UNSIGNED,
    allowNull: true,
    defaultValue: 0,
  },
});

// sys_form.sync({ force: true });
